package com.eairlv.route.server.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author eairlv
 * @description
 * @date 17:28 2019/10/15
 */
@Data
@Builder
@TableName(value = "authentication", autoResultMap = true)
@NoArgsConstructor
@AllArgsConstructor
public class AuthenticationPO {

    @TableId(type = IdType.INPUT)
    private String session;

    private String description;

    private String address;

    private Long updateInterval;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> ignoreUri;

    private Long expire;

    private String aesKey;

    private Long createTime;

    @TableLogic
    private Integer deleteFlag;

    private Long modifiedTime;
}
